function [Values1] = GetPeak_Value(yy,h_indecies,HF_SRRC)

TxRx_Filter = conv(HF_SRRC,HF_SRRC);
fp = find(TxRx_Filter == max(TxRx_Filter));

Sorted_Values = sort(abs(yy(h_indecies)),'descend');
    
h_indecies_sorted(1) = find(abs(yy) == Sorted_Values(1));
Values(1) = yy(h_indecies_sorted(1));
Values1(find(h_indecies == h_indecies_sorted(1))) = yy(h_indecies_sorted(1));

yy1 = yy;

for index = 1:length(h_indecies)-1

    h_indecies_sorted(index+1) = find(abs(yy) == Sorted_Values(index+1));

    if (h_indecies_sorted(index) ~= 1)

        center = h_indecies_sorted(index) - fp;

        z =[zeros(1,center) TxRx_Filter];

        zz =[z zeros(1,length(yy)-length(z))] * Values(index);

        yy1 = yy1 - zz;

        Values(index+1) = yy1(h_indecies_sorted(index+1));
        
        Values1(find(h_indecies == h_indecies_sorted(index+1))) = yy1(h_indecies_sorted(index+1));
        
    end

end

